FROM registry.cn-hangzhou.aliyuncs.com/little_bee/spark-base:latest

LABEL maintainer="FredyVia <fredyvia@qq.com>"

COPY worker.sh /

ENV SPARK_WORKER_WEBUI_PORT 8081
ENV SPARK_WORKER_LOG /spark/logs
ENV SPARK_MASTER "spark://spark-master:7077"

EXPOSE 8081

CMD ["/bin/bash", "/worker.sh"]